package org.akomantoso.core.data.type;

/**
 * The simple type TextualMods lists all the types of textual modifications as values for the type attribute of the
 * textualMod element.
 * 
 * <pre>
 * 	<xsd:simpleType name="TextualMods">
 * 		<xsd:restriction base="xsd:string">
 * 			<xsd:enumeration value="repeal" />
 * 			<xsd:enumeration value="substitution" />
 * 			<xsd:enumeration value="insertion" />
 * 			<xsd:enumeration value="replacement" />
 * 			<xsd:enumeration value="renumbering" />
 * 		</xsd:restriction>
 * 	</xsd:simpleType>
 * </pre>
 * 
 * 
 * @author <a href="mailto:jacques.militello@gmail.com">Jacques Militello</a>
 * 
 * @since http://www.akomantoso.org/1.0
 * 
 */
public enum TextualMods {

	repeal , substitution, insertion, replacement, renumbering;
	
	public static TextualMods checkValueOf(String name) {
		if (name == null) {
			return null;
		}
		return valueOf(name);
	}
}
